import loadingRender from './loading.art';

class Loading {
    constructor(tableConfig) {
        console.log(tableConfig)
        this.selector = tableConfig.selector;
        this.$ = tableConfig.laymodule.jq;
        this.html = loadingRender({});
    }

    open() {
        this.$(this.selector).append(this.html);
    }
    close() {
        const _this = this;
        setTimeout(function () {
            _this.$(_this.selector).find('.etable-loading').remove();
        }, 500);

    }
}

export default Loading;